<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>AdWords API Documentation</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta><link rel="stylesheet" href="../css/template.css" type="text/css"></link></head><body><div id="content"><h1 class="file">AdWords/Util/NamespaceHelper.php</h1><div id="file-nav-box"><div id="file-nav-container"><ul id="file-nav"><li><a href="#classes"><img src="../images/icons/class.png" alt="Class" height="14"></img>
                          Classes
                      </a><ul><li><a href="#\Google_Api_Ads_AdWords_Util_NamespaceHelper">\Google_Api_Ads_AdWords_Util_NamespaceHelper</a></li></ul></li></ul><div style="clear: left;"></div></div><div id="file-nav-tab">
              Table of Contents
          </div></div><a name="top" class="anchor"></a><div id="file-description"><div class="short-description">A collection of utility methods for working with Namespaces.</div><div class="long-description"><p>PHP version 5</p>

<p>Copyright 2011, Google Inc. All Rights Reserved.</p>

<p>Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at</p>

<pre><code>http://www.apache.org/licenses/LICENSE-2.0
</code></pre>

<p>Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.</p></div></div><dl class="file-info"><dt>Author</dt><dd>Eric Koleda
         
    </dd><dt>Author</dt><dd>Vincent Tsao
         
    </dd><dt>Category</dt><dd>WebServices
         
    </dd><dt>Copyright</dt><dd>2011, Google Inc. All Rights Reserved.
         
    </dd><dt>License</dt><dd>http://www.apache.org/licenses/LICENSE-2.0 Apache License,
            Version 2.0
         
    </dd><dt>Package</dt><dd>GoogleApiAdsAdWords
         
    </dd><dt>Subpackage</dt><dd>Util
         
    </dd></dl><a name="classes" class="anchor"></a><a id="\Google_Api_Ads_AdWords_Util_NamespaceHelper" class="anchor"></a><h2 class="class">\Google_Api_Ads_AdWords_Util_NamespaceHelper<div class="to-top"><a href="#top">jump to top</a></div></h2><div class="class"><small class="package"><b>Package: </b>GoogleApiAdsAdWords\Util</small><div class="short-description">A collection of utility methods for working with Namespaces.</div><div class="long-description"></div><dl class="class-info"><dt>Parent(s)</dt><dd><a href="../files/Common.Util.NamespaceHelper.html#\Google_Api_Ads_Common_Util_NamespaceHelper">\Google_Api_Ads_Common_Util_NamespaceHelper</a></dd></dl><h3>Constants</h3><div><a id="\Google_Api_Ads_AdWords_Util_NamespaceHelper::DEFAULT_PROJECT" class="anchor"></a><div class="constant publicC"><a href="#" class="gripper"><img src="../images/icons/arrow_right.png" alt="&gt;"></img><img src="../images/icons/arrow_down.png" alt="V" style="display: none;"></img></a><code class="title"><img src="../images/icons/constant.png" alt="Constant"></img> 
                <span class="highlight">DEFAULT_PROJECT</span>
                = 'AdWords'</code><div class="description"></div><div class="code-tabs"></div><div class="clear"></div></div><a id="\Google_Api_Ads_AdWords_Util_NamespaceHelper::NAMESPACE_FORMAT" class="anchor"></a><div class="constant publicC inherited_from "><a href="#" class="gripper"><img src="../images/icons/arrow_right.png" alt="&gt;"></img><img src="../images/icons/arrow_down.png" alt="V" style="display: none;"></img></a><code class="title"><img src="../images/icons/constant.png" alt="Constant"></img> 
                <span class="highlight">NAMESPACE_FORMAT</span>
                = 'Google_Api_Ads_%s_%s_%s'</code><div class="description"><span class="attribute">inherited</span><small class="inherited_from">Inherited from:
                        <a href="../files/Common.Util.NamespaceHelper.html#\Google_Api_Ads_Common_Util_NamespaceHelper::NAMESPACE_FORMAT">\Google_Api_Ads_Common_Util_NamespaceHelper::NAMESPACE_FORMAT</a></small></div><div class="code-tabs"><dl class="constant-info"><dt>Inherited_from</dt><dd><a href="../files/
                         Common.Util.NamespaceHelper.html#\Google_Api_Ads_Common_Util_NamespaceHelper::NAMESPACE_FORMAT">\Google_Api_Ads_Common_Util_NamespaceHelper::NAMESPACE_FORMAT</a>
         
    </dd></dl></div><div class="clear"></div></div><a id="\Google_Api_Ads_AdWords_Util_NamespaceHelper::LIB_NAME" class="anchor"></a><div class="constant publicC inherited_from "><a href="#" class="gripper"><img src="../images/icons/arrow_right.png" alt="&gt;"></img><img src="../images/icons/arrow_down.png" alt="V" style="display: none;"></img></a><code class="title"><img src="../images/icons/constant.png" alt="Constant"></img> 
                <span class="highlight">LIB_NAME</span>
                = 'Lib'</code><div class="description"><span class="attribute">inherited</span><small class="inherited_from">Inherited from:
                        <a href="../files/Common.Util.NamespaceHelper.html#\Google_Api_Ads_Common_Util_NamespaceHelper::LIB_NAME">\Google_Api_Ads_Common_Util_NamespaceHelper::LIB_NAME</a></small></div><div class="code-tabs"><dl class="constant-info"><dt>Inherited_from</dt><dd><a href="../files/
                         Common.Util.NamespaceHelper.html#\Google_Api_Ads_Common_Util_NamespaceHelper::LIB_NAME">\Google_Api_Ads_Common_Util_NamespaceHelper::LIB_NAME</a>
         
    </dd></dl></div><div class="clear"></div></div><a id="\Google_Api_Ads_AdWords_Util_NamespaceHelper::UTIL_NAME" class="anchor"></a><div class="constant publicC inherited_from "><a href="#" class="gripper"><img src="../images/icons/arrow_right.png" alt="&gt;"></img><img src="../images/icons/arrow_down.png" alt="V" style="display: none;"></img></a><code class="title"><img src="../images/icons/constant.png" alt="Constant"></img> 
                <span class="highlight">UTIL_NAME</span>
                = 'Util'</code><div class="description"><span class="attribute">inherited</span><small class="inherited_from">Inherited from:
                        <a href="../files/Common.Util.NamespaceHelper.html#\Google_Api_Ads_Common_Util_NamespaceHelper::UTIL_NAME">\Google_Api_Ads_Common_Util_NamespaceHelper::UTIL_NAME</a></small></div><div class="code-tabs"><dl class="constant-info"><dt>Inherited_from</dt><dd><a href="../files/
                         Common.Util.NamespaceHelper.html#\Google_Api_Ads_Common_Util_NamespaceHelper::UTIL_NAME">\Google_Api_Ads_Common_Util_NamespaceHelper::UTIL_NAME</a>
         
    </dd></dl></div><div class="clear"></div></div></div><h3>Properties</h3><div><a id="\Google_Api_Ads_AdWords_Util_NamespaceHelper::$project" class="anchor"></a><div class="property private inherited_from "><a href="#" class="gripper"><img src="../images/icons/arrow_right.png" alt="&gt;"></img><img src="../images/icons/arrow_down.png" alt="V" style="display: none;"></img></a><code class="title"><img src="../images/icons/property.png" alt="Property"></img><img src="../images/icons/visibility_private.png" style="margin-right: 5px" alt="private"></img><span class="highlight">$project</span></code><div class="description"><span class="attribute">inherited</span><small class="inherited_from">Inherited from:
                        <a href="../files/Common.Util.NamespaceHelper.html#\Google_Api_Ads_Common_Util_NamespaceHelper::$$project">\Google_Api_Ads_Common_Util_NamespaceHelper::$$project</a></small></div><div class="code-tabs"><strong>Details</strong><dl class="property-info"><dt>Type</dt><dd>n/a</dd><dt>Inherited_from</dt><dd><a href="../files/
                         Common.Util.NamespaceHelper.html#\Google_Api_Ads_Common_Util_NamespaceHelper::$$project">\Google_Api_Ads_Common_Util_NamespaceHelper::$$project</a>
         
    </dd></dl></div><div class="clear"></div></div><a id="\Google_Api_Ads_AdWords_Util_NamespaceHelper::$user" class="anchor"></a><div class="property private inherited_from "><a href="#" class="gripper"><img src="../images/icons/arrow_right.png" alt="&gt;"></img><img src="../images/icons/arrow_down.png" alt="V" style="display: none;"></img></a><code class="title"><img src="../images/icons/property.png" alt="Property"></img><img src="../images/icons/visibility_private.png" style="margin-right: 5px" alt="private"></img><span class="highlight">$user</span></code><div class="description"><span class="attribute">inherited</span><small class="inherited_from">Inherited from:
                        <a href="../files/Common.Util.NamespaceHelper.html#\Google_Api_Ads_Common_Util_NamespaceHelper::$$user">\Google_Api_Ads_Common_Util_NamespaceHelper::$$user</a></small></div><div class="code-tabs"><strong>Details</strong><dl class="property-info"><dt>Type</dt><dd>n/a</dd><dt>Inherited_from</dt><dd><a href="../files/
                         Common.Util.NamespaceHelper.html#\Google_Api_Ads_Common_Util_NamespaceHelper::$$user">\Google_Api_Ads_Common_Util_NamespaceHelper::$$user</a>
         
    </dd></dl></div><div class="clear"></div></div><a id="\Google_Api_Ads_AdWords_Util_NamespaceHelper::$version" class="anchor"></a><div class="property private inherited_from "><a href="#" class="gripper"><img src="../images/icons/arrow_right.png" alt="&gt;"></img><img src="../images/icons/arrow_down.png" alt="V" style="display: none;"></img></a><code class="title"><img src="../images/icons/property.png" alt="Property"></img><img src="../images/icons/visibility_private.png" style="margin-right: 5px" alt="private"></img><span class="highlight">$version</span></code><div class="description"><span class="attribute">inherited</span><small class="inherited_from">Inherited from:
                        <a href="../files/Common.Util.NamespaceHelper.html#\Google_Api_Ads_Common_Util_NamespaceHelper::$$version">\Google_Api_Ads_Common_Util_NamespaceHelper::$$version</a></small></div><div class="code-tabs"><strong>Details</strong><dl class="property-info"><dt>Type</dt><dd>n/a</dd><dt>Inherited_from</dt><dd><a href="../files/
                         Common.Util.NamespaceHelper.html#\Google_Api_Ads_Common_Util_NamespaceHelper::$$version">\Google_Api_Ads_Common_Util_NamespaceHelper::$$version</a>
         
    </dd></dl></div><div class="clear"></div></div></div><h3>Methods</h3><div><a id="\Google_Api_Ads_AdWords_Util_NamespaceHelper::__construct()" class="anchor"></a><div class="method public"><a href="#" class="gripper"><img src="../images/icons/arrow_right.png"></img><img src="../images/icons/arrow_down.png" style="display: none;"></img></a><code class="title"><img src="../images/icons/method.png" alt="method" title="method"></img><img src="../images/icons/visibility_public.png" style="margin-right: 5px" alt="public"></img><span class="highlight">__construct</span><span class="nb-faded-text">(\Google_Api_Ads_Common_Lib_AdsUser $user)</span> : void</code><div class="description"><p class="short_description">Construct a namespace helper.</p></div><div class="code-tabs"><div class="long-description"></div><strong>Parameters</strong><table class="argument-info"><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tr><th>$user</th><td>\Google_Api_Ads_Common_Lib_AdsUser</td><td><em><p>the ads user.</p></em></td></tr></table></div><div class="clear"></div></div><a id="\Google_Api_Ads_AdWords_Util_NamespaceHelper::getLibClass()" class="anchor"></a><div class="method public inherited_from "><a href="#" class="gripper"><img src="../images/icons/arrow_right.png"></img><img src="../images/icons/arrow_down.png" style="display: none;"></img></a><code class="title"><img src="../images/icons/method.png" alt="method" title="method"></img><img src="../images/icons/visibility_public.png" style="margin-right: 5px" alt="public"></img><span class="highlight">getLibClass</span><span class="nb-faded-text">(string $name)</span> : void</code><div class="description"><span class="attribute">inherited</span><p class="short_description">Get the name of a library class.</p><small class="inherited_from">Inherited from:
                    <a href="../files/Common.Util.NamespaceHelper.html#\Google_Api_Ads_Common_Util_NamespaceHelper::getLibClass()">\Google_Api_Ads_Common_Util_NamespaceHelper::getLibClass()</a></small></div><div class="code-tabs"><div class="long-description"></div><strong>Parameters</strong><table class="argument-info"><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tr><th>$name</th><td>string</td><td><em><p>the short name for the class.</p></em></td></tr></table></div><div class="clear"></div></div><a id="\Google_Api_Ads_AdWords_Util_NamespaceHelper::getUtilClass()" class="anchor"></a><div class="method public inherited_from "><a href="#" class="gripper"><img src="../images/icons/arrow_right.png"></img><img src="../images/icons/arrow_down.png" style="display: none;"></img></a><code class="title"><img src="../images/icons/method.png" alt="method" title="method"></img><img src="../images/icons/visibility_public.png" style="margin-right: 5px" alt="public"></img><span class="highlight">getUtilClass</span><span class="nb-faded-text">(string $name)</span> : void</code><div class="description"><span class="attribute">inherited</span><p class="short_description">Get the name of a utility class.</p><small class="inherited_from">Inherited from:
                    <a href="../files/Common.Util.NamespaceHelper.html#\Google_Api_Ads_Common_Util_NamespaceHelper::getUtilClass()">\Google_Api_Ads_Common_Util_NamespaceHelper::getUtilClass()</a></small></div><div class="code-tabs"><div class="long-description"></div><strong>Parameters</strong><table class="argument-info"><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tr><th>$name</th><td>string</td><td><em><p>the short name for the class.</p></em></td></tr></table></div><div class="clear"></div></div><a id="\Google_Api_Ads_AdWords_Util_NamespaceHelper::getVersion()" class="anchor"></a><div class="method private inherited_from "><a href="#" class="gripper"><img src="../images/icons/arrow_right.png"></img><img src="../images/icons/arrow_down.png" style="display: none;"></img></a><code class="title"><img src="../images/icons/method.png" alt="method" title="method"></img><img src="../images/icons/visibility_private.png" style="margin-right: 5px" alt="private"></img><span class="highlight">getVersion</span><span class="nb-faded-text">()</span> : void</code><div class="description"><span class="attribute">inherited</span><p class="short_description">Get the current service version.</p><small class="inherited_from">Inherited from:
                    <a href="../files/Common.Util.NamespaceHelper.html#\Google_Api_Ads_Common_Util_NamespaceHelper::getVersion()">\Google_Api_Ads_Common_Util_NamespaceHelper::getVersion()</a></small></div><div class="code-tabs"><div class="long-description"></div></div><div class="clear"></div></div><a id="\Google_Api_Ads_AdWords_Util_NamespaceHelper::getVersionedClass()" class="anchor"></a><div class="method public inherited_from "><a href="#" class="gripper"><img src="../images/icons/arrow_right.png"></img><img src="../images/icons/arrow_down.png" style="display: none;"></img></a><code class="title"><img src="../images/icons/method.png" alt="method" title="method"></img><img src="../images/icons/visibility_public.png" style="margin-right: 5px" alt="public"></img><span class="highlight">getVersionedClass</span><span class="nb-faded-text">(string $name)</span> : void</code><div class="description"><span class="attribute">inherited</span><p class="short_description">Get the name of a service version class.</p><small class="inherited_from">Inherited from:
                    <a href="../files/Common.Util.NamespaceHelper.html#\Google_Api_Ads_Common_Util_NamespaceHelper::getVersionedClass()">\Google_Api_Ads_Common_Util_NamespaceHelper::getVersionedClass()</a></small></div><div class="code-tabs"><div class="long-description"></div><strong>Parameters</strong><table class="argument-info"><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tr><th>$name</th><td>string</td><td><em><p>the short name for the class.</p></em></td></tr></table></div><div class="clear"></div></div><a id="\Google_Api_Ads_AdWords_Util_NamespaceHelper::instantiate()" class="anchor"></a><div class="method public inherited_from "><a href="#" class="gripper"><img src="../images/icons/arrow_right.png"></img><img src="../images/icons/arrow_down.png" style="display: none;"></img></a><code class="title"><img src="../images/icons/method.png" alt="method" title="method"></img><img src="../images/icons/visibility_public.png" style="margin-right: 5px" alt="public"></img><span class="highlight">instantiate</span><span class="nb-faded-text">(string $name, array $args = array())</span> : void</code><div class="description"><span class="attribute">inherited</span><p class="short_description">Get an instance of a class, with arguments.</p><small class="inherited_from">Inherited from:
                    <a href="../files/Common.Util.NamespaceHelper.html#\Google_Api_Ads_Common_Util_NamespaceHelper::instantiate()">\Google_Api_Ads_Common_Util_NamespaceHelper::instantiate()</a></small></div><div class="code-tabs"><div class="long-description"></div><strong>Parameters</strong><table class="argument-info"><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tr><th>$name</th><td>string</td><td><em><p>the full name for the class.</p></em></td></tr><tr><th>$args</th><td>array</td><td><em><p>the array of args to pass to the constructor.</p></em></td></tr></table></div><div class="clear"></div></div><a id="\Google_Api_Ads_AdWords_Util_NamespaceHelper::setVersion()" class="anchor"></a><div class="method public inherited_from "><a href="#" class="gripper"><img src="../images/icons/arrow_right.png"></img><img src="../images/icons/arrow_down.png" style="display: none;"></img></a><code class="title"><img src="../images/icons/method.png" alt="method" title="method"></img><img src="../images/icons/visibility_public.png" style="margin-right: 5px" alt="public"></img><span class="highlight">setVersion</span><span class="nb-faded-text">( $version)</span> : void</code><div class="description"><span class="attribute">inherited</span><p class="short_description">Set the version to use for versioned classes.</p><small class="inherited_from">Inherited from:
                    <a href="../files/Common.Util.NamespaceHelper.html#\Google_Api_Ads_Common_Util_NamespaceHelper::setVersion()">\Google_Api_Ads_Common_Util_NamespaceHelper::setVersion()</a></small></div><div class="code-tabs"><div class="long-description"></div><strong>Parameters</strong><table class="argument-info"><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tr><th>$version</th><td></td><td><em></em></td></tr></table></div><div class="clear"></div></div></div></div></div><small class="footer">
            Documentation was generated by
            <a href="http://phpdoc.org">phpDocumentor
                2.0.0a12</a>.
        </small></body></html>
